import React, { Component } from 'react'

export default class Login extends Component {
    login = () => {
        sessionStorage.setItem('token', "FKALKS")
        this.props.history.replace(this.props.location.state.back)
    }
    render() {
        console.log(this.props)
        // [a, b, c, d, d]
        return (
            <div>
                <p>
                    <input type="text" />
                </p>
                <button onClick = { this.login }>登录</button>
            </div>
        )
    }
}
